/* --- Cấu trúc chung cho Trang Tin Tức --- */
.news-container {
    display: flex;
    width: 90%;
    max-width: 1200px;
    margin: 30px auto;
    gap: 30px;
}

.news-main-content {
    flex: 3; 
}

.news-sidebar {
    flex: 1; 
}

/* --- Định dạng cho mỗi Bài viết (Article Card) --- */
#article-list { /* Thêm ID này vào div chứa danh sách bài viết */
    padding: 0;
}

.article-card {
    display: flex; /* Bố cục ngang: Ảnh bên trái, Nội dung bên phải */
    margin-bottom: 30px;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-left: 5px solid #28a745;
}

/* ĐIỀU CHỈNH CHÍNH Ở ĐÂY: Kích thước ảnh trên màn hình lớn */
.article-card-image {
   display: block; 
    
    /* Kích thước trên DESKTOP */
    width: 35%; 
    height: 220px; 
    max-width: 100%; /* Đảm bảo không tràn container cha */
    
    object-fit: cover;
    flex-shrink: 0;
}

.article-card-content {
    padding: 25px;
    width: 65%;
}

/* --- Responsive: Kích thước ảnh vừa màn hình trên Điện thoại --- */
@media (max-width: 992px) {
    .article-card {
        flex-direction: column; /* Chuyển bố cục sang 1 cột: Ảnh trên, Nội dung dưới */
    }
    
    /* Ảnh chiếm toàn bộ chiều rộng của thẻ bài viết */
    .article-card-image {
         width: 100%; 
        height: 200px;
    }
    
    /* Nội dung cũng chiếm toàn bộ chiều rộng */
    .article-card-content {
        width: 100%;
        padding: 15px;
    }
}

.article-card-content h3 {
    margin-top: 0;
    color: #343a40;
    font-size: 1.6em; /* Tăng kích thước tiêu đề */
    transition: color 0.3s;
}

.article-card:hover .article-card-content h3 {
    color: #007bff; /* Thay đổi màu tiêu đề khi hover */
}

.article-meta {
    font-size: 0.9em;
    color: #6c757d;
    margin-bottom: 12px;
}

.article-meta span {
    margin-right: 15px;
}

.detail-link {
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
    color: #007bff !important; /* Dùng màu xanh dương cho link chính */
    text-decoration: none;
}

/* --- Sidebar Cải tiến --- */
.sidebar-box {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #eee;
}

.sidebar-box h4 {
    margin-top: 0;
    color: #007bff; /* Màu tiêu đề sidebar */
    font-size: 1.2em;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.featured-article-link {
    padding: 12px 0; /* Tăng padding */
    font-size: 1em;
    border-bottom: 1px solid #f0f0f0; /* Đường kẻ mờ hơn */
}

.featured-article-link:last-child {
    border-bottom: none;
}

/* --- Nút Xem Thêm (Load More Button) --- */
#load-more-button {
    display: block;
    width: 50%;
    margin: 30px auto;
    padding: 15px 25px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
}

#load-more-button:hover {
    background-color: #1e7e34;
}

/* Responsive */
@media (max-width: 992px) {
    .news-container {
        flex-direction: column;
    }
    .article-card {
        flex-direction: column;
    }
    .article-card-image, .article-card-content {
        width: 100%;
        height: auto;
    }
    .article-card-image {
        height: 200px;
    }
    #load-more-button {
        width: 80%;
    }
}